package edu.sctu.xialei.May.day20150529one;

import java.util.Collection;
import java.util.HashMap;

/**
 * Created by Administrator on 5/29/2015.
 */
public class Printer {

    public void printStudentInfo(HashMap<Integer, StudentInfo> map) {

        Collection<StudentInfo> values = map.values();

        for (StudentInfo studentInfo : values) {

            System.out.println("姓名：" + studentInfo.name + "   学号：" + studentInfo.number + "   成绩：" +
                    +studentInfo.grade + "   地址：" + studentInfo.address);


        }
    }
}
